//
// Created on 2025/1/10.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef WHISPER_COMMON_H
#define WHISPER_COMMON_H

#include <string>
#include <iostream>
#include <stdio.h>
#include <js_native_api.h>
#include <js_native_api_types.h>
#include <vector>
#include "random_text.h"
#include "fuzzy_matching.h"
#include "hilog/log.h"
#include "napi/native_api.h"
#include "rawfile/raw_file_manager.h"
#include "rawfile/raw_file.h"
#include "rawfile/raw_dir.h"

extern std::string generateRandomText(int length);    // 随机文本生成
extern std::string whisper_recog();                   // 语音识别
extern std::string match(std::string generated_sentence, std::string recognized);   // 文本匹配

#endif //WHISPER_COMMON_H
